package com.usian.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<Product> {

    @Select("select * from product where status<2 || status=4")
    List<Product> findAll(int id);

    @Select("select * from product where status = 1")
    List<Product> sh(int ztai);
}
